﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FtpWorkerRole.FtpServer;

namespace FtpWorkerRole.FtpCommand
{
    class UserCommand : CommandBase
    {
        public UserCommand(FtpSocketHandler handler)
            : base(handler)
        {
            commandName = "USER";
        }

        public override void execute(string value)
        {
            handler.user = value;
            String message = formatMessage(331, "Please Specify the password");
            Utils.sendMessage(handler.getSocket(), message);
            //Utils.sendMessage(handler.getSocket(), formatMessage(331, "Plase specify the password."));
            //handler.login(handler.user,"");
        }
    }
}
